#pragma once
#include"Utility.h"
const int MAX_QUEUE = 50;//  small value for testing
typedef char data_entry;

struct Queue_entry
{
	data_entry data;
	int priority;
};

class PriorityQueue
{
public:
	PriorityQueue();
	Error_code append(const Queue_entry& item);
	Error_code serve();
	Error_code retrieve(Queue_entry& item)const;
	bool empty()const;
protected:
	int rear;//  front stays at 0
	Queue_entry entry[MAX_QUEUE];
};